//
// Created by wujehy on 2020/6/24.
//

#include <iostream>
#include "SharedClass.h"

SharedClass::SharedClass(int id, const std::string &name) : id( id ), name( name )
{
    std::cout << "init SharedClass id = " << this->id << " name = " << this->name <<std::endl;
}

SharedClass::~SharedClass()
{
    std::cout << "delete SharedClass id = " << this->id << " name = " << this->name <<std::endl;

}

int SharedClass::getId() const
{
    return id;
}

const std::string &SharedClass::getName() const
{
    return name;
}

void SharedClass::setName(const std::string &name)
{
    SharedClass::name = name;
}
